#ifndef __BSP_SPI_HW_H
#define __BSP_SPI_HW_H


void spi0_gpio_sdo(int8_t state);
int8_t spi0_gpio_sdi(void);	
void spi0_gpio_delayus(uint32_t us);
void spi0_gpio_clk(int8_t state);

void spi1_gpio_sdo(int8_t state);
int8_t spi1_gpio_sdi(void);	
//void spi1_gpio_delayus(uint32_t us);
void spi1_gpio_clk(int8_t state);

void spi2_gpio_sdo(int8_t state);
int8_t spi2_gpio_sdi(void);	
//void spi2_gpio_delayus(uint32_t us);
void spi2_gpio_clk(int8_t state);


void bsp_spi_hw_init(void);
int gd32_spi_bus_xfer(struct spi_dev_device *spi_dev,struct spi_dev_message *msg);
void st_ops_spi_init(void);
#endif
